@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'GL Journal Entry Item'
@Metadata.ignorePropagatedAnnotations: true
define view entity ZI_GeneralJournalEntryItem
  as select from zgje_item

  association to parent ZI_GeneralJournalEntry as _Header on $projection.Uuid = _Header.Uuid
{
  key uuid                 as Uuid,
  key buzei                as Buzei,
      @Semantics.amount.currencyCode: 'Waers'
      wrbtr                as Wrbtr,
      _Header.Waers        as Waers,
      sgtxt                as sgtxt,
      hkont                as hkont,
      kostl                as Kostl,
      prctr                as Prctr,
      @Semantics.user.createdBy: true
      item_created_by      as Item_Created_By,
      @Semantics.systemDateTime.createdAt: true
      item_created_at      as Item_Created_At,
      @Semantics.user.lastChangedBy: true
      item_last_changed_by as Item_Last_Changed_By,
      @Semantics.systemDateTime.localInstanceLastChangedAt: true
      item_last_changed_at as Item_Last_Changed_At,
      _Header
}
